<%@page import="java.util.ArrayList"%>
<%@include file="taglibs.jsp"%>

<div class="version_box">
	<div id="version_less_details_${version.ID}" style="display:block;">
		${versionRank.count }. ${version.pageTitle} at ${version.revision }: ${version.score }
		<button type="button" id="button_snippets_${version.ID }" onclick="toggle_version_snippets('${version.ID}'); return false;">Show snippets</button>
		<button type="button" id="button_full_content_${version.ID }" onclick="toggle_version_full_content('${version.ID}'); return false;">Show content</button>
		<button type="button" id="button_metadata_${version.ID }" onclick="toggle_version_metadata('${version.ID}'); return false;">Show metadata</button>
	</div>
	
	<div id="version_full_content_${version.ID}" style="display:none;">
		${version.html}
	</div>
	
	<div id="version_snippets_${version.ID}" style="display:none;">
		${version.snippetsHtml}
	</div>
	
	<div id="version_metadata_${version.ID}" style="display:none;">
		<b>ID: </b>${version.ID}
		<br>
		<b>Page_ID: </b>${version.page_ID }
		<br>
		<b>Revision: </b>${version.revision }
		<br>
		<b>Entities: </b> ${version.entities }
		<br>
		<b>Original text: </b> ${version.original_text }
	</div>
	
</div>


